export default class Result {
    constructor(code, message, data) {
        (this.code = code), (this.message = message);
        this.data = data;
    }

    getCode() {
        return this.code;
    }
    setCode(code) {
        this.code = code;
    }

    getMessage() {
        return this.message;
    }
    setMessage(message) {
        this.message = message;
    }

    getData() {
        return this.data;
    }
    setData(data) {
        this.data = data;
    }

    toString() {
        return `${this.code} -- ${this.message} -- ${this.data}`;
    }
}